#include "progressbar.h"

void process()
{
  int i = 0;
  char str[100] = {0};
  char status[5] = {'|','/','-','\\','\0'};//这个顺序需要调整
  memset(str,' ',100);
  for(;i<=100;++i)
  {
    memset(str,'#',i);
    printf("[%s][%3d%%][%c]\r",str,i,status[i%4]);//这里添加状态打印
    fflush(stdout);
    usleep(100000);
  }
  printf("\n");
}
